//********************************************************************
//Project name:	Trabalho 1, Cliente do chat de Teleprocessamento e Redes (2012/1)
//Authors:		Vitor Machado, Wakim Jraige, Wander Soares
//Remarks:		This project uses UTF-8 Encoding
//********************************************************************
package br.ufrj.dcc.tp.cliente;

import java.awt.Component;

import br.ufrj.dcc.tp.cliente.controller.ClientController;
import br.ufrj.dcc.tp.unitTest.driver.MainTest;

public class Main implements MainTest {
	
	private ClientController c;
	private Integer id;
	
	/** Inicializa um cliente. */
	public static void main(String[] args) {
		new ClientController();
	}

	@Override
	public Component getComponent(Class<? extends Component> klass) {
		return c.getComponent(klass);
	}

	@Override
	public Object getController(Class<?> klass) {
		return c;
	}

	@Override
	public void run() {
		c = new ClientController();
	}

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public void stop() {
		c.forceStop();
	}
}
